﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 机器人
    /// </summary>
    public class Robot
    {
        /// <summary>
        /// 主键，激活码
        /// </summary>
        [XYD.Framework.Key]
        public string activation { get; set; }
        /// <summary>
        /// 机器人名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 机器人账号
        /// </summary>
        public string account { get; set; }
        /// <summary>
        /// 机器人密码
        /// </summary>
        public string password { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime add_date { get; set; }
        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime last_date { get; set; }        
        /// <summary>
        /// 账号，0未启用，1已启用
        /// </summary>
        public int state { get; set; }
        /// <summary>
        /// 是否删除，0未删除，1已删除
        /// </summary>
        public int is_delete { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime start_date { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime end_date { get; set; }

        /// <summary>
        /// 推广人id
        /// </summary>
        public int promoter_id { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime reg_date { get; set; }

        public int is_login { get; set; }

    }
}
